.class Lcom/waiqin365/lightapp/dailyreport/view/bb;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/support/v4/view/ViewPager$OnPageChangeListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/dailyreport/view/at;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/dailyreport/view/at;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/bb;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPageScrollStateChanged(I)V
    .locals 2

    const/4 v1, 0x1

    if-ne p1, v1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bb;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/at;->a(Lcom/waiqin365/lightapp/dailyreport/view/at;Z)Z

    :cond_0
    :goto_0
    return-void

    :cond_1
    if-nez p1, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bb;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/at;->a(Lcom/waiqin365/lightapp/dailyreport/view/at;Z)Z

    goto :goto_0
.end method

.method public onPageScrolled(IFI)V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bb;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->g(Lcom/waiqin365/lightapp/dailyreport/view/at;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    cmpl-float v0, p2, v0

    if-ltz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bb;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->h(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ge p1, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bb;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->h(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/bb;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/view/at;->h(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/widget/LinearLayout;

    move-result-object v1

    add-int/lit8 v2, p1, 0x1

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->setDirection(I)V

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->setDirection(I)V

    const/high16 v2, 0x3f800000    # 1.0f

    sub-float/2addr v2, p2

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->setProgress(F)V

    invoke-virtual {v1, p2}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->setProgress(F)V

    :cond_0
    return-void
.end method

.method public onPageSelected(I)V
    .locals 4

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    new-instance v1, Lcom/waiqin365/lightapp/dailyreport/view/bc;

    invoke-direct {v1, p0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/bc;-><init>(Lcom/waiqin365/lightapp/dailyreport/view/bb;I)V

    const-wide/16 v2, 0x64

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method
